package api02a;

import java.util.HashSet;
import java.util.Set;

public class SetDemo1 {
    public static void main(String[] args) {
        Set<Point> s = new HashSet<>();
        s.add(new Point(1,4));
        s.add(new Point(3,1));
        s.add(new Point(22,9));
        s.add(new Point(5,2));

        s.add(new Point(1,4));
        System.out.println(s);

        boolean b = s.add(new Point(3,1));
        System.out.println(b);
        System.out.println(s);
    }
}
